TSO-Atomicity: Efficient TSO Enforcement for Aggressive Program Optimization

نویسندگان

  • Cheng Wang
  • Youfeng Wu
  • Jaewoong Chung
چکیده

Strong memory consistency models like Sequential Consistency (SC) and Total Store Ordering (TSO) impose tremendous memory consistency constraints on program optimizations. Existing techniques leverage HW atomicity supports to enable aggressive optimizations while enforcing sequential consistency. By grouping the optimized code into a region and committing the whole region atomically, sequential consistency is preserved. But for optimization in TSO, the sequential consistency enforced by HW atomicity supports imposes stronger consistency than necessary, resulting in in inefficient region commit operations. In this paper, we introduce the HW support for a novel TSO-atomicity, which provides weaker consistency than atomicity for efficient region commit, but still can enforce TSO for aggressive optimizations. We show in our experiments that, dynamic binary optimizations without HW atomicity supports can improve binary program performance by only 6.7% and 8.1% in frame-level (around 20 instructions per frame) and region-level binary optimization (around 70 instructions per region) respectively. With HW atomicity supports, region-level binary optimization can improve the performance further by 7.8%. However, frame-level binary optimization actually losses performance by 2.7% due to the overheads associated with the commit for atomicity. HW supports for TSOatomicity can reduce the overheads at region commit and achieve a total 12% and 20.4% performance gain for frame-level and region-level binary optimization respectively.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On Atomicity in Presence of Non-atomic Writes

The inherently nondeterministic semantics of concurrent programs isthe root of many programming errors. Atomicity (more precisely conflict seri-alizability) has been used to reduce the magnitude of this nondeterminism andtherefore make it easier to understand the behaviour of the concurrent program.Serializability, however, has not been studied well for programs executed under<l...

متن کامل

A Verification-Based Approach to Memory Fence Insertion in PSO Memory Systems

This paper addresses the problem of verifying and correcting programs when they are moved from a sequential consistency execution environment to a relaxed memory context. Specifically, it considers the PSO (Partial Store Order) memory model, which corresponds to the use of a store buffer for each shared variable and each process. We also will consider, as an intermediate step, the TSO (Total St...

متن کامل

Sound and Complete Monitoring of Sequential Consistency for Relaxed Memory Models

We present a technique for verifying that a program has no executions violating sequential consistency (SC) when run under the relaxed memory models Total Store Order (TSO) and Partial Store Order (PSO). The technique works by monitoring sequentially consistent executions of a program to detect if similar program executions could fail to be sequentially consistent under TSO or PSO. We propose n...

متن کامل

A Bilevel Model for Railway Train Set Organizing Optimization

Train Set Organization (TSO) is to arrange the train set in railway freight transportation. Bilevel programming techniques were proposed to solve the Stackelberg game in which play is sequential and cooperation is not permitted. In this paper, an optimizing model for TSO is developed by the bilevel techniques. First, we analyzed the multiple level nature of management on TSO and simplified it i...

متن کامل

Lazy TSO Reachability

We address the problem of checking state reachability for programs running under Total Store Order (TSO). The problem has been shown to be decidable but the cost is prohibitive, namely non-primitive recursive. We propose here to give up completeness. Our contribution is a new algorithm for TSO reachability: it uses the standard SC semantics and introduces the TSO semantics lazily and only where...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011